package com.memorywords.pojo;



import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;

@Data
public class User {
    private int userId;
    @NotEmpty
    @Pattern(regexp = "^\\S{1,10}$")
    private String username;//用户名

    @JsonIgnore
    private String password;//密码
    @NotEmpty
    @Email
    private String email;//邮箱
    private int progress;
    private String userPic;//用户头像
}
